package com.qxzn.app.page.robot;

import android.os.Bundle;

import com.qxzn.app.page.BaseActivity;
import com.qxzn.app.page.R;
import com.qxzn.app.page.R2;
import com.qxzn.app.util.ActivityStack;

import butterknife.OnClick;

public class AddRobotActivity4 extends BaseActivity {
    @Override
    protected int initLayout() {
        return R.layout.activity_add_robot4;
    }

    @Override
    protected void initView() {
        iv_back.setOnClickListener(view -> done());
    }

    private void done() {
        ActivityStack.finishAllWithoutActivity("com.qxzn.app.desktoprobot.MainActivity");
    }

    @Override
    protected void iniTitleBar() {
        tv_title.setText("添加机器人");
    }

    @Override
    protected void initData(Bundle savedInstanceState) {
    }

    @OnClick(R2.id.tv_bind)
    public void onViewClicked() {
        done();
    }

    @Override
    public void onBackPressed() {
        done();
    }
}
